package net.gazhi.delonix.rbac.form;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 角色表单
 * 
 */
public class RoleEditForm {

	private int id;

	@NotEmpty(message = "角色名称不能为空！")
	@Length(max = 64, message = "角色名称不能超过64个字符")
	private String name;

	@Length(max = 256, message = "角色备注不能超过256个字符")
	private String remark;

	private int[] actionIds;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int[] getActionIds() {
		return actionIds;
	}

	public void setActionIds(int[] actionIds) {
		this.actionIds = actionIds;
	}

}
